package com.bionic.banking.commands;

import com.bionic.banking.auth.manager.Config;
import com.bionic.banking.auth.manager.Message;
import com.bionic.banking.dao.connection.LoggerLoader;
import javax.servlet.ServletException;
import javax.servlet.http.*;

public class CommandMissingException implements ICommand {

    private static final org.apache.log4j.Logger logger =
            LoggerLoader.getLogger(CommandMissingException.class);

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) throws ServletException {
        request.setAttribute("error",
                Message.getInstance().getProperty(Message.COMMAND_MISSING_ERROR));
        String page = Config.getInstance().getProperty(Config.ERROR);

        return page;
    }
}
